# list = []
# while True:
#     num = int(input("请输入您的选项"))
#     if num ==1:
#         result = input("请输入要添加的好友")
#         list.append(result)
#         print("添加成功")
#     elif num ==2:
#         result = input("请输入要删除的好友")
#         list.remove(result)
#         print("删除成功")
#     elif num ==3:
#         result = input("输入要修改备注的好友")
#         result1 = input("输入修改备注之后的好友")
#         for i in range(len(list)):
#             if list[i] == result:
#                 list[i] == reshlt1
#                 print("修改成功")
#     elif num == 4:
#         if list:
#             print(list)
#         else:
#             print("好友列表为空")
#     elif num == 5:
#         print("关闭好友系统")
#         break

# list = []
# import random
# for i in range(5):
#    list.append(random.randint(1,5))
# list.sort(reverse = False )
# print(list)

# def random_randint(start_num,end_num,num):
#     list = []
#     import random
#     for i in range(num):
#         list.append(random_randint(start_num,end_num,num) )
#         list.sort(reverse = False )
#         return list
# print(random_randint(2,10,4))
# def random_randint(start_num,end_num,num):
#     list_ = []
#     import random
#     for i in range(num):
#         list_.append(random.randint(start_num,end_num))
#     list_.sort(reverse=False)
#     return list_
# print(random_randint(2,10,3))

# def random_randint(start_num,end_num,num):
#     list = []
#     import random
#     for i in range(num):
#         list.append(random_randint(num))
#         list.sort(reverse= False )
#         return list
#         print(random_randint(1,10.5))

# list_ = []
# import random
# for i in range(100):
#     list_.append(random.randint(1, 100))
#
# list_.sort(reverse=False)
# print(list_)

# user1 = ["root","123"]
# user2 = ["westos","456"]
# num=0
# for i in range(3):
#     user=input("请输入您的账号")
#     pwd=input("请输入您的密码")
#     if (user1==user1[0] and pwd==user1[1]) or (user2==user2[0] and pwd==user2[1]):
#         print("登录成功")
#         break
#     elif (user1==user1[0] and pwd!=user1[1]) and num <2:
#         num += 1
#         print('用户1的密码错误')
#         print('您还有{}次机会'.format(3-num) )
#     elif (user1!=user1[0] and user1==user1[1]) and num<2:
#         num += 1
#         print("用户1的账号错误")
#         print("您还有{}次机会".format(3-num ))
#     elif (user2==user2[0] and pwd!=user2[1]) and num<2:
#         num += 1
#         print('用户2密码错误')
#         print('您还有{}次机会'.format(3-num) )
#     elif (user2!=user2[0] and pwd==user2[1]) and num<2:
#         num+=1
#         print('用户2账户错误')
#         print('您还有{}次机会'.format(3-num) )
#     elif num==2:
#         print("机会用完")

# list =[]
# while True:
#    num=input("输入内容")
#    if num !="n" and num !="N":
#        list.append(num)
#    elif num =="n" or num == "N":
#         print("打印列表")
#         break
#    elif num !="n" and num !="N":
#        num= input("输入的内容")
#        list.append(num)
#    for i in range(len(list)):
#     list = num
#     print("用户信息已存在")


# list1 = []
# while True:
#     a = input("请输入用户名").strip()
#     if 'N' in a or 'n' in a:
#         print('您输入的内容里包含了\'n\'或者\'N\'')
#         break
#     if a in list1:
#         print("所输入的内容在列表中已经存在，不必再重复添加")
#     else:
#         list1.append(a)
#         print("结束打印列表{}".format(list1))



# list = []
# while True:
#     a=input('请输入内容')
#     if 'N'in a or 'n' in a:
#         print("结束")
#         break
#     if a in list:
#         print('已存在')
#     else:
#         list.append(a)
#         print('结束打印列表'.format(list))


# def fn():
#     print('haha')
# fn()

# print(sum((1,2,3)))
#
# print(max(1,2,4))
#
# print(len([1,2,3]))
# print(len([2,3,7]))


# def haha(name,age):
#     print('{}今年{}岁'.format(name,age) )
# haha('校长','99')


# def a(c,d):
#     sum = c[0]+d[0]
#     print("sum:{}".format(sum) )
# c=[20,60]
# d=[70.90]
# a(c,d)

count = 0

# def hh():
#     global count
#     count+=1
# print(count)
# hh()
# print(count)



# count = 1
# def hh():
#     global count
#     count =2
# print(count)
# hh()
# print(count)

# a = 5
# def hh (a):
#     a =a+5
#     print(a)
# hh(a)
# print(a)


# 全局变量a = 5
# def 验证变量(全局变量a):
#     全局变量a = 全局变量a+5 #  全局变量a = 5+5
#     print(全局变量a)
# 验证变量(5)
# print(全局变量a) # 全局变量a = 5








